/**
 * jims
 */
package com.jims.master.modules.med.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 一卡通办理日志Entity
 * @author 陈晓阳
 * @version 2017-05-22
 */
public class MedicalCardChangeLog extends DataEntity<MedicalCardChangeLog> {
	
	private static final long serialVersionUID = 1L;
	private String patientId;		// patient_id
	private String cardNo;		// card_no
	private String reason;		// 变更原因
	private String cardFlag;		// 1 新办；2 挂失；3 启用；4 注销
	private String expand1;		// expand1
	private String expand2;		// expand2
	private String expand3;		// expand3
//	private String orgId;		// 机构ID
    private double money;//退卡之前的余额
    private  Integer refundNum;//退卡人数
    private double chargesAmount;// 退费金额


    public Integer getRefundNum() {
        return refundNum;
    }

    public void setRefundNum(Integer refundNum) {
        this.refundNum = refundNum;
    }

    public double getChargesAmount() {
        return chargesAmount;
    }

    public void setChargesAmount(double chargesAmount) {
        this.chargesAmount = chargesAmount;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public MedicalCardChangeLog() {
		super();
	}

	public MedicalCardChangeLog(String id){
		super(id);
	}

	@Length(min=1, max=64, message="patient_id长度必须介于 1 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=1, max=64, message="card_no长度必须介于 1 和 64 之间")
	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}
	
	@Length(min=1, max=64, message="变更原因长度必须介于 1 和 64 之间")
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}
	
	@Length(min=0, max=2, message="1 新办；2 挂失；3 启用；4 注销长度必须介于 0 和 2 之间")
	public String getCardFlag() {
		return cardFlag;
	}

	public void setCardFlag(String cardFlag) {
		this.cardFlag = cardFlag;
	}
	
	@Length(min=0, max=64, message="expand1长度必须介于 0 和 64 之间")
	public String getExpand1() {
		return expand1;
	}

	public void setExpand1(String expand1) {
		this.expand1 = expand1;
	}
	
	@Length(min=0, max=64, message="expand2长度必须介于 0 和 64 之间")
	public String getExpand2() {
		return expand2;
	}

	public void setExpand2(String expand2) {
		this.expand2 = expand2;
	}
	
	@Length(min=0, max=64, message="expand3长度必须介于 0 和 64 之间")
	public String getExpand3() {
		return expand3;
	}

	public void setExpand3(String expand3) {
		this.expand3 = expand3;
	}
	
//	@Length(min=1, max=64, message="机构ID长度必须介于 1 和 64 之间")
//	public String getOrgId() {
//		return orgId;
//	}
//
//	public void setOrgId(String orgId) {
//		this.orgId = orgId;
//	}
//
}